package com.lzh.xianguang.controller;

import com.lzh.xianguang.model.GoodInfo;
import com.lzh.xianguang.service.GoodSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Question GoodController
 * @Date 2023/3/6 17:20
 * @Solution
 */
@RestController
public class GoodController {
    @Autowired
    GoodSevice goodSevice;
    @RequestMapping("/getlist")
    public List<GoodInfo> getList() {
        System.out.println(goodSevice.getList().get(0).getSellerImg());
        return goodSevice.getList();
    }
}
